package com.twu.biblioteca.command;

import com.twu.biblioteca.BibliotecaModel;
import com.twu.biblioteca.Book;

/**
 * Created with IntelliJ IDEA.
 * User: twer
 * Date: 5/21/13
 * Time: 4:15 PM
 * To change this template use File | Settings | File Templates.
 */
public class ListBooksCommand extends Command {
    @Override
    public void runCommand() {
        showBooksList();
    }

    private void showBooksList() {
        for (Book book : BibliotecaModel.getBooks()) {
            System.out.println(book.toString());
        }
    }
}
